//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.example.demo.pojo;

public enum StatusCode {
    SUCCESS(200, "ok"),
    DEFAULT_ERROR(400000, "未分类的异常"),
    NOT_ALLOW_INSTANCE(400001, "不允许被实例化"),
    MERCHANT_ID_NOT_FOUND(440001, "获取不到商户id"),
    MERCHANT_CONNECTION_INFO_NOT_FOUND(440002, "获取不到商户连接信息(配置库中没有)"),
    CHAIN_CONTEXT_PARAMETER_IS_NULL(440003, "清空ChainContext请求调用clear()方法"),
    LOGGING_DEPENDENCY_NOT_EXCLUDE(400010, "spring-boot-starter-logging包未被排除，请检查引入的依赖是否带有此包"),
    REFLECTION_ERROR(400011, "反射异常，请检查是否因为版本升级导致方法不一致"),
    ARGUMENT_IS_NULL(400012, "指定参数为null"),
    CONFIG_FILE_NOT_FOUND(400013, "配置文件找不到"),
    CONFIG_ARGUMENT_IS_NULL(400014, "配置参数为null"),
    NOT_ALLOW_CALL(400004, "不允许调用此方法"),
    SPECIAL_ERROR(400002, "特殊处理的异常"),
    URL_ENCODE_ERROR(400003, "HTTP参数构造异常"),
    HTTP_REQUEST_API_ERROR(400004, "HTTP请求其他接口异常"),
    HTTP_REQUEST_API_RETRY_TIME_ERROR(400005, "HTTP请求其他接口重试次数异常"),
    HTTP_REQUEST_BODY_TYPE_VALIDATION_FAIL(400006, "HTTP请求其他接口时同时使用了两种请求体格式"),
    CALL_NOT_SUPPORTED(400007, "不支持的调用"),
    RESPONSE_TYPE_SUPPORTED(400008, "没找到可用的响应解析器"),
    HTTP_CLIENT_BAD_REQUEST(400400, "接收到来自HTTP客户端的不合法的请求"),
    HTTP_NOT_FOUND(400404, "HTTP路由不正确"),
    HTTP_METHOD_ERROR(400405, "HTTP方法不支持"),
    PARAMETER_VALIDATION_ERROR(423000, "参数效验不通过"),
    PARAMETER_NOT_READABLE(423001, "请求参数无法正确解析"),
    PARAMETER_MEDIA_TYPE_ERROR(423003, "请求参数类型不支持"),
    REQUIRED_PARAMETER_DOES_NOT_EXIST(423404, "必要请求参数不存在"),
    NO_TOKEN(423405, "token不能为空"),
    INVALID_TOKEN(423406, "验证失败,请重新登录"),
    NO_USER_ID(423407, "User-Id不能为空"),
    ERROR_USER_ID(423408, "User-Id错误"),
    FORBID_USE_JOIN(423409, "禁止使用JOIN"),
    FORBID_USE_SUB_QUERY(423409, "禁止使用子查询"),
    MUST_SET_REDIS_EXPIRE_TIME(423410, "必须设置redis过期时间"),
    UNKNOWN_SQL_EXPR_TYPE(423411, "无法识别的SQLExpr类型"),
    PLEASE_ADD_EXCLUDE_TENANT_ID_TABLE(423412, "请添加需要排除的表"),
    FORBID_USE_DDL(423413, "禁止使用DDL语句"),
    PLEASE_SET_CONTEXT(423414, "请设置上下文"),
    INVALID_REFRESH_TOKEN(423415, "token已失效,非法刷新token"),
    INVALID_SEQ(423416, "token已失效,非法SEQ"),
    INVALID_ZKKZ_LANGUAGE(423417, "token已失效,非法ZKKZ_LANGUAGE"),
    INVALID_TIME_ZONE(423418, "token已失效,非法TIME_ZONE"),
    INVALID_PLATFORM(423419, "token已失效,非法PLATFORM"),
    INVALID_ATUH_TYPE(423420, "token已失效,非法ATUH_TYPE"),
    INVALID_SAAS_PLATFORM(423421, "token已失效,非法SAAS_PLATFORM"),
    INVALID_TENANT_ID(423422, "token已失效,非法TENANT_ID"),
    INVALID_USER_ID(423423, "token已失效,非法USER_ID"),
    INVALID_REPEAT_SUBMIT_CACHE(423424, "重复请求缓存获取或设置错误"),
    INVALID_REPEAT_SUBMIT(423425, "请勿重复请求"),
    INVALID_LOCAL_IP(423426, "非法IP"),
    REDIS_LIMIT_ERROR(423427, "限流"),
    REDIS_LIMIT_METHOD_ERROR(423428, "限流的方法为空"),
    APPLICAITON_CONTEXT_ERROR(423428, "applicaitonContext未注入"),
    INVALID_CREATE_TOKEN(423429, "创建token失败"),
    INVALID_GET_METHOD_ERROR(423430, "获取方法参数异常"),
    INVALID_TOKEN_AND_RETURN_NEW_TOKEN(423431, "token已失效,请用新token"),
    INVALID_DECRYPT_KEY_ERROR(423432, "解密失败"),
    INVALID_HEADER_NOT_EXISTS(488878, "访问业务平台时，缺少header参数:TENANT_ID 或者 缺少header参数:SAAS_PLATFORM"),
    INVALID_HEADER_TENANT_ID(488879, "访问业务平台时，缺少header参数:TENANT_ID"),
    INVALID_DATASOURCE_ASPECT_EXCEPTION(488880, "数据源切面处理类controller异常"),
    INVALID_DATASOURCE_ASPECT(488881, "数据源切面处理类异常"),
    INVALID_LOG_ASPECT(488882, "日志切面处理类异常"),
    INVALID_REPEAT_ASPECT(488883, "重复请求切面处理类异常"),
    INVALID_HEADER_SAAS_PLATFORM(488884, "缺少header参数:SAAS_PLATFORM,请传入operate或者business！"),
    INVALID_DATASOURCE_LOAD(488885, "查询失败，当前租户信息未加载到动态数据源，请联系技术专家！"),
    INVALID_ASPECT_RUNTIMEEXCEPTION(488886, "数据源切面处理类运行时异常(通常是事务失败)"),
    INVALID_ASPECT_OPENAPI_FAIL(488887, "token校验失败,请重新获取新的token"),
    INVALID_ASPECT_OPENAPI_EXCEPTION(488888, "token校验异常,请联系官方技术人员!"),
    INVALID_ASPECT_OPENAPI_APPKEY_NOT_EXISTS(488889, "appKey不合法!"),
    INVALID_ASPECT_OPENAPI_SIGN_ERROR(488890, "签名验证失败!"),
    INVALID_ASPECT_OPENAPI_SIGN(488891, "签名验证异常，请连续官方技术人员!"),
    INVALID_ASPECT_OPENAPI_APPKEY_IS_NULL(488892, "缺失appKey头信息"),
    INVALID_ASPECT_OPENAPI_RANDOM_IS_NULL(488893, "缺失random头信息"),
    INVALID_ASPECT_OPENAPI_SIGN_IS_NULL(488894, "缺失sign头信息"),
    INVALID_ADMIN_STATUS(488895, "用户类型错误"),
    INVALID_MONGODB_DATASOURCE_LOAD(488896, "查询失败，当前租户信息未加载到mongodb动态数据源，请联系技术专家！"),
    INTERNAL_ERROR(500000, "由于业务繁忙或者系统升级，当前请求的服务暂时不可用，请稍后再试，具体详情请联系系统服务人员!");

    private final int code;
    private final String message;

    private StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
